package com.liu.ssm.controller.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liu.ssm.controller.service.UserService;
import com.liu.ssm.dao.UserDao;
import com.liu.ssm.entity.User;
@Service
public class UserServiceimpl implements UserService{
    @Autowired
    private UserDao userdao;
    
    
	@Override
	public User findByUsername(String username) {
	      return userdao.findByUsername(username);
	}


	@Override
	public int add(User user) {
		return userdao.add(user);
		
		
	}


	@Override
	public List<User> findList(Map<String, Object> mapp) {
		return userdao.findList(mapp);
	}


	@Override
	public int getTotal(Map<String, Object> mapp) {
		return userdao.getTotal(mapp);
	}


	@Override
	public int edit(User user) {
		return userdao.edit(user);
	}


	@Override
	public int delete(String ids) {
		return userdao.delete(ids);
	}

}
